source 'https://github.com/CocoaPods/Specs.git'

# Uncomment the next line to define a global platform for your project
platform :ios, '15.0'

target 'Video Lite' do
  # Comment the next line if you don't want to use dynamic frameworks
    use_frameworks!
    
    source 'https://github.com/CocoaPods/Specs.git'
    
    pod 'google-cast-sdk', '4.8.4'
    pod 'ffmpeg-kit-ios-full', '~> 6.0'
    pod 'Google-Mobile-Ads-SDK'
    pod 'GoogleMobileAdsMediationPangle'
    pod 'GoogleMobileAdsMediationVungle'
    pod 'GoogleMobileAdsMediationAppLovin'
    pod 'GoogleMobileAdsMediationMintegral'
    pod 'GoogleMobileAdsMediationMoloco'
    pod 'GoogleMobileAdsMediationInMobi'
    pod 'GoogleMobileAdsMediationFyber'
    pod 'GoogleMobileAdsMediationPubMatic'
    pod 'GoogleMobileAdsMediationBidMachine'
    pod 'GoogleMobileAdsMediationBigo'
    
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
      config.build_settings.delete('EXCLUDED_ARCHS')
      config.build_settings.delete('EXCLUDED_ARCHS[sdk=iphonesimulator*]')
    end
  end

  Dir.glob(File.join(installer.sandbox.root.to_s, 'Target Support Files', 'Pods-*', 'Pods-*.xcconfig')).each do |path|
    lines = File.readlines(path).reject { |line| line.start_with?('EXCLUDED_ARCHS') }
    File.write(path, lines.join)
  end
end
